#define _CRT_SECURE_NO_WARNINGS 1
/*#include<stdio.h>
#include<cassert>
int Mystrlen(const char* arr)
{
	assert(arr!=NULL);
	int count = 0;
	while (*arr!='/0')
	{
		count++;
		arr++;
	}
	return count;
}
int main()
{
	char arr[] = "hello";
	int ret=Mystrlen(arr);
	printf("%d\n", ret);
	return 0;
}*/
#include <stdio.h>
#include <assert.h>
#include<cassert>
size_t my_strlen(const char* str)
{
	assert(str != NULL);
	int count = 0;
	while (*str)
	{
		count++;
		str++;
	}
	return count;
}

int main()
{
	char arr[] = "abcdef";
	int len = my_strlen(arr);
	printf("%d\n", len);
	return 0;
}
